<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script type="text/javascript" src="../js/jquery-1.10.2.js"></script>
<script type="text/javascript">
	function passwdCheck(){
		
		var passwd = $("#m_passwd").val();
		var data = {"m_passwd":passwd};
		$.ajax({
			type:"post",
			data:data,
			url:"passwdCheck.do",
			dataType:"json",
			success:function(data){
				if(data.result==false){
					$("#passwdMessage").html("비밀번호가 틀렸습니다.");
					$("#m_passwd").val("");
					$("#m_passwd").focus();
					
				}else{
					location.href="updateMyInfo.do";
				}
			}
		});
	}

</script>

	<div style="margin-left: 200pt">
	아이디 : ${userId }
	<br/><br/><br/>
	
	비밀번호 : <input type="password" id="m_passwd" name="m_passwd"/><span id="passwdMessage"></span>
	
<br/>

	<br/><br/><br/>
	<input type="button" value="비밀번호확인" onclick="passwdCheck()"/>
	<input type="button" value="취소" onclick="location.href='shopMain.do'"/>
</div>
	 
